package com.example.springcloud.domain;

import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 路线对象 route
 * 
 * @author helian
 * @date 2025-03-01
 */
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "路线对象")
@Data
public class Route implements Serializable {
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "主键")
    private Long id;

    /** 路线名称 */
    @Excel(name = "路线名称")
    @ApiModelProperty(value = "路线名称")
    private String name;

    /** 路线图片 */
    @Excel(name = "路线图片")
    @ApiModelProperty(value = "路线图片")
    private String routeImage;

    /** 备注 */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String note;

    /** 途径点信息 */
    @Excel(name = "途径点信息")
    @ApiModelProperty(value = "途径点信息")
    private List<Path> pathList;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("routeImage", getRouteImage())
            .append("note", getNote())
            .append("pathList", getPathList())
            .toString();
    }
}
